package com.fll.fangyicommon.entity.share;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fll.fangyicommon.entity.user.User;
import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * @author fll
 * create 2023/3/25
 * 评论表
 */
@Setter
@Getter
@NoArgsConstructor
@Data
public class Comment {

    @TableId
    //评论主键
    private Integer commentId;
    //用户id
    private Integer userId;
    //share-id
    private Integer shareId;
    //评论内容（文字）
    private String commentContent;
    //品论点赞数
    private Integer commentLike;

    private String yl;

    @TableField(exist = false)
    private Boolean isLike; //登录用户是否点赞

    @TableField(exist = false)
    private User user;
}
